package com.wechat.ferry.service;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wechat.ferry.entity.WxUser;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author Chuan.Chen
 * @since 2025-02-19
 */
public interface WxUserService extends IService<WxUser> {
    /**
     * 初始化用户信息
     *
     * @return
     */
    String initUser();

    /**
     * 初始化联系人和群成员
     *
     * @return
     */
    String initWxUser();

    /**
     * 执行生日推送
     *
     * @return
     */
    String execBirthDay();

    /**
     * 测试消息推送
     *
     * @param msgText
     */
    void sendTextMsg(String msgText, Boolean replaceFullStop);

    /**
     * 执行早安心语
     *
     * @return
     * @throws Exception
     */
    String execGoodMorningMessage() throws Exception;

    /**
     * 执行热点推送
     *
     * @return
     * @throws Exception
     */
    String execHotNews() throws Exception;

    /**
     * 调用阿里通义
     *
     * @param prompt
     * @return
     * @throws NoApiKeyException
     * @throws InputRequiredException
     */
    String chatAdvancedAli(String prompt) throws NoApiKeyException, InputRequiredException;


}
